﻿QUnit.test("Length of games", function (assert) {
    assert.equal(heatingGame.gameLength, 2 * 60 * 1000);
    assert.equal(FPA.gameLength, 4 * 60 * 1000);
    assert.equal(GPA.gameLength, 4 * 60 * 1000);
    assert.equal(NPA.gameLength, 4 * 60 * 1000);
});

QUnit.test("Costs", function (assert) {
    var costTable = getNewScenario().getCostTable();

    var actionTime = costTable.getRepairTime(enumMC.MINOR);
    var actionCost = costTable.getRepairCost(enumMC.MINOR);
    assert.equal(actionTime, 3 * 1000, "actionTime");
    assert.equal(actionCost, 500, "actionCost");

    actionTime = costTable.getTime(enumAction.MAINTENANCE);
    actionCost = costTable.getCost(enumAction.MAINTENANCE);
    assert.equal(actionTime, 8 * 1000, "MAINTENANCE Time");
    assert.equal(actionCost, 5, "MAINTENANCE Cost");
   

});